package com.geper.pattern.composite;

import javafx.scene.Node;

/**
 * @author: lsy
 * @date: 2020-03-09 20:32
 * @description: LeafNode
 */
public class LeafNode extends RootNode {
    public LeafNode(String name) {
        super(name);
    }

    @Override
    public String show(int level) {
        return name;
    }
}
